package com.example.bookshop.service.impl;

import com.example.bookshop.entity.Book;
import com.example.bookshop.mapper.BookMapper;
import com.example.bookshop.service.HomeService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @auth shanyue
 * @date 2025年06月05日15:15
 */
@Service
public class HomeServiceImpl implements HomeService {

    @Resource
    private BookMapper bookMapper;

    @Override
    public List<Book> findAllBooks() {
        return bookMapper.findAll();
    }

}
